@extends("admin.layouts.main")
<style>
    .layui-form-item > .layui-form-label:nth-child(2) {
        text-align: left;
    }
    .layui-input-block{
        margin-left: 115px !important;
    }
    .layui-form-label{
        width:104px !important;
    }
</style>
@section("content")
<div class="or-mid">
    <form class="layui-form mt-5">
        <div class="layui-form-item">
            <label class="layui-form-label">公会ID/名称</label>
            <label class="layui-form-label">
                {{ $alipayone->gid}}/{{ $alipayone->gid}}
            </label>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <label class="layui-form-label">
                {{ $alipayone->name}}
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <label class="layui-form-label">
                {{ $alipayone->mobile}}
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付宝账号</label>
            <label class="layui-form-label">
                {{ $alipayone->alipay}}
            </label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审核状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="成功">
                <input type="radio" name="status" value="2" title="失败">
            </div>
        </div>
		@if(in_array('draw.updatealipay', $menuRule))
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="update-draw" data-url="{{ route('draw.updatealipay', ['id' => $alipayone->id]) }}" data-type="PUT">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
		@endif
    </form>
</div>
@endsection

@section("js")
<script type="text/javascript">
    layui.use(['form', 'ori'], function () {
        var form = layui.form,
            ori = layui.ori,
            $ = layui.$;

        form.on('submit(update-draw)', function (data) {
            ori.submit($(this), data.field, function () {
                parent.location.reload();
            });
            return false;
        });
    });
</script>
@endsection
